import { de } from "element-plus/es/locale";
import { post } from "./server";
import { get } from "./server";
 
export const registerApi=(data:any)=>{
  return post({
    url:'/user/register',
    data
  })
}
export const pwdLoginApi=(data:any)=>{
  return post({
    url:'/user/login',
    data
  })
}
export const getDevice=()=>{
  return get({
    url:'/device/list'
  })
}
 
export default {registerApi,pwdLoginApi,getDevice}
